<?php
/**
 * Author:xsc
 * Time:2023/12/6 13:44
 */

namespace App\Params\Common;

use App\Params\BaseParam;

class GoodsLockParams extends BaseParam
{

    public $access_mid;

    public $mid;

    public $mobile;

    public $goods_id;

    public $lock_serial_number;

    public function rules()
    {
        return [
            'access_mid'         => 'required|string',
            'mid'                => 'string',
            'mobile'             => 'required|string',
            'goods_id'           => 'required|int',
            'lock_serial_number' => 'string',
        ];
    }

    public function message()
    {
        return [
            "access_mid.required" => "平台号不能为空",
            "mobile.required"     => "手机号不能为空",
            "goods_id.required"   => "商品id不能为空",
        ];
    }

    public function getAccessMid()
    {
        return $this->access_mid;
    }

    public function getMid()
    {
        return $this->mid;
    }

    public function getMobile()
    {
        return $this->mobile;
    }

    public function getGoodsId()
    {
        return $this->goods_id;
    }

    public function getLockSerialNumber()
    {
        return $this->lock_serial_number;
    }

}
